<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>register</title>
	<link rel="stylesheet" href="__PUBLIC__/style/style.css">
	<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
</head>
<body>
	<form action="{:U('Account/register')}" method="post">
		<div class="register-box">
			<span></span>
			<h1>注册小米账号</h1>
			<ul>
				<li><input type="text" name="username" placeholder="用户名"></li>
				<li><input type="password" name="password" placeholder="密码"></li>
				<li><input type="password" name="repassword" placeholder="重复密码"></li>
				<li><input type="text" name="verify" placeholder="请输入图片中字符" class="yz"><a href="javascript:void(0)"><img id="mask" class="verify" src="{:U('Account/verify')}" alt="点击刷新"/></a></li>
				<li><input type="submit" name="submit" value="立即注册"></li>
			</ul>
			<p>点击“立即注册”，即表示您同意并愿意遵守小米<a href="">用户协议</a>和<a href="">隐私政策</a></p>
		</div>
	</form>
	<script>
	    $(function(){
	        $(".verify").click(function(){
	            var src = "{:U('Account/verify')}";
	            var random = Math.floor(Math.random()*(1000+1));
	            $(this).attr("src",src+"&random="+random);

	        });
	    })
	</script>
</body>
</html>